package org.andes.kownledge;

import java.io.InputStream;
import java.util.List;

import lisp.SExp;

/**
 * Created by IntelliJ IDEA.
 * User: wenfeix
 * Date: 2011-2-1
 * Time: 21:59:35
 * To change this template use File | Settings | File Templates.
 */
public class eqn   {
    private int Index;
    public int Index(){
        return Index;
    }
    private String Type;
    public String type(){
        return Type;
    }
    private String Algebra;
    public String getAlgebra(){
         return Algebra;
    }
    private String Exp;
    private String Nodes;
    private String Solved;

    public void read_mreadable_eqn(){
        
    }

    public boolean isSolved(){
        return false;//xwf
    }
    //"Given a list of an eqn generate an eqn struct from it."
    private void Eqnlist2Eqn(){
        
    }

    public void readContent(SExp sexp,BubbleGraph g) throws Exception {

         //SExp sexp=SExp.INPUT(S);
        List<SExp> L= sexp.toList();
        int index=1;
        Index=Integer.valueOf(L.get(index++).GetValue()).intValue();
        Type=L.get(index++).GetValue();
        Algebra=L.get(index++).GetValue();
        Exp=L.get(index++).GetValue();
        Nodes=L.get(index++).GetValue();
        Solved=L.get(index++).GetValue();
       

    }

    //Given a list of indicies and a list of vars collect the specified vars.
    private void collect_indicies_eqns(){
        
    }
    
    private void eqns_to_enodes(){

    }

    //"Is the specified type an eqn and an entry type."
    public boolean eqn_entry_type_p(){
        return false;
    }
     public boolean sg_eqn_forbiddenp(){
      return false;

    }
}
